<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Query extends Model
{
//    protected $dateFormat='U';
    protected $table='query';
    protected $guarded=[];
    use HasFactory;

    public function parent()
    {
        return $this->hasMany(Query::class,'pid');
    }
}
